﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DPS.DataModel;
using System.Configuration;

namespace DPS.Prototype.Provider
{
    public class DataContextProvider
    {
        private static string dataConnString = ConfigurationManager.ConnectionStrings["DPSConnectionString"].ConnectionString;
        private static DPSDataModelDataContext GetDataContext()
        {
            DPSDataModelDataContext dataContext = new DPSDataModelDataContext(dataConnString);
            return dataContext;
        }

        public static DPSDataModelDataContext DataContext
        {
            get
            {
                return GetDataContext();
            }
        }
    }
}
